<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/common/default.jsp"%>
	<body class="bot">
	
	<div class="boy_1">
		<div class="boy_2">
		<div id="te_t">
        	<span>添加用户</span>
    	</div>
			<form  id="user"  method="post">
			
			<div class="rmtdlog">
			<div class="rm_box"><i class="span_input">姓名：</i><input class="pr_input" name="userName" id="userName" type="text" maxlength="20"/></div>
			<div class="rm_box"><i class="span_input">电子邮件：</i><input class="pr_input" name="email" id="email" type="text" maxlength="20"/></div>	
			<div class="rm_box"><i class="span_input">手机号：</i><input class="pr_input" name="phoneNum" id="phoneNum" type="text" maxlength="20"/></div>	
			<div class="rm_box"><i class="span_input">性别：</i>
				<div class="select_border" style="float:right">
					<div class="container">
						<select name="sex" id="sex" class="select">
							<option value="1">男</option>
							<option value="2">女</option>
						</select>
					</div>
				</div> 
			 </div>
			
			<div class="rm_box"><i class="span_input">密码：</i><input class="pr_input" name="password" id="password" type="password" maxlength="20"/></div>
			<div class="rm_box"><i class="span_input">再次输入密码：</i><input class="pr_input" name="password" id="confrimpassword" type="password" maxlength="20"/></div>	
			
			<div class="rm_box"><i class="span_input">项目：</i>
				<div class="select_border" style="float:right">
					<div class="container">
						<select name="projectID" id="projectID" class="select">
							<option value="1">项目一</option>
							<option value="2">项目二</option>
						</select>
					</div>
				</div> 
			 </div>	
			 
			 <div class="rm_box"><i class="span_input">工段：</i>
				<div class="select_border" style="float:right">
					<div class="container">
						<select name="segmentID" id="segmentID" class="select">
							<option value="1">项目一</option>
							<option value="2">项目二</option>
						</select>
					</div>
				</div> 
			 </div>	
				
			<div class="rm_box"><i class="span_input">职务：</i><input class="pr_input" name="postName" id=" postName" type="text" maxlength="20"/></div><br/>	
			
			<div class="rm_box" style="padding-left:82px;">
				<input type="button" style="font-color:#ff0000" name="addbtn" style="margin-left:40px; margin-right:10px;" value="确认" onclick="addSave();"/>
				<input type="button"  name="cancelbtn" value="取消" onclick="cancel();"/>
			 </div>
				
			</div>
			</form>
			
			</div>
			</div>
			
		<script language="Javascript">
			function addSave(){
				jQuery("#user").attr("action", "${ctx}/saveUser");
				alert(jQuery("#user").action);
	    		jQuery("#user").submit();
			}
		</script>	
				
		
	</body>

